package com.ruoyi.system.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.SysOtherTable;
import com.ruoyi.system.service.ISyOthersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;
import java.util.Date;

@RestController
@RequestMapping("/system/others")
public class SysOthersController {
    @Autowired
    private ISyOthersService syOthersService;
    @GetMapping("/otherCount")
    public AjaxResult getOthers(String date){
        return AjaxResult.success(syOthersService.getDatas());
    }

    @GetMapping("/otherCountToday")
    public AjaxResult getOthersToday(){
        return AjaxResult.success(syOthersService.getDatasToday());
    }

    @GetMapping("/otherTable")
    public AjaxResult getOthersTable( ){
        return AjaxResult.success(syOthersService.getTableDatas());
    }
}
